package com.crocodileq.consultant.controller;


import com.crocodileq.consultant.aiService.ConsultantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Flux;

/***
 * @Author 鳄鱼杆
 * @Date 2025/9/3 15:25
 */
@RestController
public class ChatController {

    @Autowired
    private ConsultantService consultantService;

    @GetMapping("/chat")
    public Flux<String> chat(@RequestParam("memoryId")String memoryId,@RequestParam("message") String message){

        return consultantService.chat(memoryId,message);
    }
}
